package com.bbj.ch4_abstract.demo1;

/**
 * @author
 * @date 2024/4/28、14:05
 */
public abstract class Card {
    private String userName;
    private Double balance;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Card() {

    }

    public Card(String userName, Double balance) {
        this.userName = userName;
        this.balance = balance;
    }

    public abstract void pay(Double money);
}
